﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace iSufeMVC4.Controllers
{
    public class HomeController : Controller
    {
        public string Body5start,Body5end;
        public ActionResult Index()
        {
            ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";
            ViewBag.PageId = "page1";

            ViewBag.Body5start = "";
            ViewBag.Body5end = "";

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "“iSufe爱上财”是上海财经大学热心学生为拓展校园信息渠道打造的多终端应用平台。该平台功能涵盖校园资讯、活动报名、课程交流等常用功能，让师生随时随地都获取校园讯息。目前，平台支持iOS/Android/WAP等移动设备访问，今后将为校园提供更多人性化服务。";

            return View();
        }

        public ActionResult Contacts()
        {
            ViewBag.Message = "Your quintessential contact page.";
            ViewBag.PageId = "page5";
            ViewBag.Body5start = @"<div class=""body5"">";
            ViewBag.Body5end = @"</div>";

            return View();
        }

        public ActionResult News()
        {
            ViewBag.Message = "Your quintessential News page.";
            ViewBag.PageId = "page2";
            ViewBag.Body5start = @"<div class=""body5"">";
            ViewBag.Body5end = @"</div>";
            return View();
        }

        public ActionResult Products()
        {
            ViewBag.Message = "Your quintessential Products page.";
            ViewBag.PageId = "page4";
            ViewBag.Body5start = @"<div class=""body5"">";
            ViewBag.Body5end = @"</div>";
            return View();
        }

        public ActionResult Services()
        {
            ViewBag.Message = "Your quintessential Services page.";
            ViewBag.PageId = "page3";
            ViewBag.Body5start = @"<div class=""body5"">";
            ViewBag.Body5end = @"</div>";
            return View();
        }
    }
}
